Add a clang format file and a CI that checks formatting issues - #51
Merged
Conversation
Contributor
Author
|
@rykerfish , in principle, the .git-blame-ignore-revs will make it so that tools will ignore the commits in there for the purposes of git blame. Now, I am not sure how automatic this is in practice (for instance, you have to configure manually in your local git). |
|
✅ Linter reported no issues All Python files are correctly formatted with Black. |
|
✅ Linter reported no issues All C/C++ files are correctly formatted with clang-format. |
Contributor
Author
|
Also, sometimes one really needs to turn off clang-format in a section of a file (like a pretty comment), you can do this: \\ clang-format off
\\ This will be ignored by clang-format
\\ clang-format on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Its time to settle on some automated formatting. The CI in this repo will complain if the correct formatting is not used.